using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class TimeController : MonoBehaviour
{
    public static TimeController _instance;

    [SerializeField] private AudioSource bgmAudio;
    //[SerializeField] private AudioSource attackAudio;

    

    private void Awake()
    {
        _instance = this;
    }

    public void SlowTime()
    {
        bgmAudio.pitch = 0.2f;
        //attackAudio.pitch = 0.5f;
        Time.timeScale = 0.2f;
    }

    public void NormaliseTime()
    {
        bgmAudio.pitch = 1.0f;
        //attackAudio.pitch = 1.0f;
        Time.timeScale = 1.0f;
    }
}
